import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

class StandardizationRiskHazardMenuType implements ChoiceBean {
  StandardizationRiskHazardMenuType(this.name);

  final String name;

  bool isChecked = false;

  static final regulation = StandardizationRiskHazardMenuType('管理制度');
  static final realtime = StandardizationRiskHazardMenuType('安全生产管理档案');
  static List<StandardizationRiskHazardMenuType> get all => [regulation, realtime];

  @override
  String getId() => name;

  @override
  String getShowName() => name;

  @override
  bool getIsChecked() => isChecked;

  @override
  void setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }

  String get path {
    switch (name) {
      case '管理制度':
        return '/standard//getmanagementSystemPage';
      case '安全生产管理档案':
        return '/standard//ProductionManagementArchives/getProductionManagementArchivesPage';
      default:
        return '';
    }
  }
}